import Vue from 'vue';
import Router from 'vue-router';
Vue.use(Router);

export default new Router({
	// mode:'history',
    routes: [
		{
		    path: '/',
		    redirect: '/index'
		},
        {
            path: '/index',
            component: () => import(/* webpackChunkName: "dashboard" */ '../components/position.vue'),
            meta: { title: '老人定位数据' }
        },
		{
		    path: '/index1',
		    component: () => import(/* webpackChunkName: "dashboard" */ '../components/setposition.vue'),
		    meta: { title: '老人定位数据' }
		},
        {
            path: '*',
            redirect: '/404'
        }
    ]
});
